package com.apps.sannotation.constraints;

import java.lang.annotation.*;

/**
 * 正则匹配
 */
@Target({ElementType.PARAMETER,ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface StrPattern {

    String matches();

    String errMsg() default "不符合正则匹配规则";
}
